# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-google-auth
_pkgname=google-auth
pkgver=1.7.1
pkgrel=2
pkgdesc='Google Authentication Library'
url='https://pypi.org/project/google-auth/#files'
arch=('any')
license=('Apache')
depends=('python2' 'python2-six' 'python2-cachetools' 'python2-pyasn1-modules'
         'python2-rsa' 'ca-certificates')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a2a3c80f23a8f1d3b5dd8bb4b77565f1f7f2960455683fa5b7539df5e9457f6bffea0e38245bcde05a6604d794b5158188d753d05d4fe3050cf6a0d4a9878b38')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

